package com.ambow.service.impl;

import java.util.List;

import com.ambow.dao.ProductDao;
import com.ambow.dao.impl.ProductDaoImpl;
import com.ambow.entity.Product;
import com.ambow.service.ProductService;
import com.ambow.utils.PageResults;

public class ProductServiceImpl implements ProductService{
	ProductDao dao = new ProductDaoImpl();
	@Override
	public List<Product> getRand(String hql) {
		return this.dao.getRand(hql);
	}
	@Override
	public Product QueryOne(String sql) {
		return this.dao.queryOne(sql);
	}
	@Override
	public PageResults<Product> getPageByFetchedHql(String hql, String countHql, Integer pageNo, Integer pageSize) {
		return this.dao.getPageByFetchedHql(hql,countHql,pageNo,pageSize);
		
		
	}

}
